package priv.pront.code.lanqiao.competition.course.date0330;

import java.util.Scanner;

public class 填空题 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        char c = scanner.next().charAt(0);
        String[] ans = {" ", "4 48 0"};
        System.out.println(ans[c - 'A']);

    }
}
